home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Pascal Super Library
/
Pascal Super Library (CW International)(1997).bin
/
BORL_TIP
/
TI2000
/
TI2644.ASC
< prev
next >
Wrap
Text File
|
1994-09-19
|
1KB
|
46 lines
PRODUCT : Pascal NUMBER : 2644
VERSION : All
OS : DOS
DATE : August 18, 1994 PAGE : 1/1
TITLE : Changing the border color in DOS text mode.
Ever wonder how to change the color of the border
around your screen in DOS text mode? It's actually
very simple - just call DOS interrupt $10, function
$0B. This sample code illustrates how. You just drop
the BorderColor procedure into any of your DOS text
mode programs.
Program ChBorder;
procedure BorderColor(NewColor: byte); assembler;
{ simply call this procedure and pass it the number }
{ of the color to which you would like the text-mode }
{ border to change. }
asm
mov ah, 0Bh
mov bh, 00h
mov bl, NewColor
int 10h
end;
begin
BorderColor(2);
end.
DISCLAIMER: You have the right to use this technical information
subject to the terms of the No-Nonsense License Statement that
you received with the Borland product to which this information
pertains.